package com.gsk.europepharma.salesReport.hibernate.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the mv_sp_bo_poc_sales_report_01 table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="mv_sp_bo_poc_sales_report_01"
 */

public abstract class BasemvSpBoPocSalesReport01  implements Serializable {

	public static String REF = "mvSpBoPocSalesReport01";
	public static String PROP_ZONE_NAME = "zoneName";
	public static String PROP_SECT_NAME = "sectName";
	public static String PROP_MARCHE_NAME = "marcheName";
	public static String PROP_RS_NAME = "rsName";
	public static String PROP_UN = "un";
	public static String PROP_PM = "pm";
	public static String PROP_MONTH = "month";
	public static String PROP_UGA_CODE = "ugaCode";
	public static String PROP_PRODUIT = "produit";
	public static String PROP_REG_NAME = "regName";
	public static String PROP_UN_MARCH = "unMarch";
	public static String PROP_ID = "id";
	public static String PROP_CS_MONTH = "csMonth";


	// constructors
	public BasemvSpBoPocSalesReport01 () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BasemvSpBoPocSalesReport01 (java.lang.Integer id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Integer id;

	// fields
	private java.lang.String marcheName;
	private java.lang.String produit;
	private java.lang.Integer csMonth;
	private java.util.Date month;
	private java.lang.String rsName;
	private java.lang.String zoneName;
	private java.lang.String regName;
	private java.lang.String sectName;
	private java.lang.String ugaCode;
	private java.lang.Double un;
	private java.lang.Double unMarch;
	private java.lang.Double pm;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  column="ID"
     */
	public java.lang.Integer getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.Integer id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: MARCHE_NAME
	 */
	public java.lang.String getMarcheName () {
		return marcheName;
	}

	/**
	 * Set the value related to the column: MARCHE_NAME
	 * @param marcheName the MARCHE_NAME value
	 */
	public void setMarcheName (java.lang.String marcheName) {
		this.marcheName = marcheName;
	}



	/**
	 * Return the value associated with the column: PRODUIT
	 */
	public java.lang.String getProduit () {
		return produit;
	}

	/**
	 * Set the value related to the column: PRODUIT
	 * @param produit the PRODUIT value
	 */
	public void setProduit (java.lang.String produit) {
		this.produit = produit;
	}



	/**
	 * Return the value associated with the column: CS_MONTH
	 */
	public java.lang.Integer getCsMonth () {
		return csMonth;
	}

	/**
	 * Set the value related to the column: CS_MONTH
	 * @param csMonth the CS_MONTH value
	 */
	public void setCsMonth (java.lang.Integer csMonth) {
		this.csMonth = csMonth;
	}



	/**
	 * Return the value associated with the column: MONTH
	 */
	public java.util.Date getMonth () {
		return month;
	}

	/**
	 * Set the value related to the column: MONTH
	 * @param month the MONTH value
	 */
	public void setMonth (java.util.Date month) {
		this.month = month;
	}



	/**
	 * Return the value associated with the column: RS_NAME
	 */
	public java.lang.String getRsName () {
		return rsName;
	}

	/**
	 * Set the value related to the column: RS_NAME
	 * @param rsName the RS_NAME value
	 */
	public void setRsName (java.lang.String rsName) {
		this.rsName = rsName;
	}



	/**
	 * Return the value associated with the column: ZONE_NAME
	 */
	public java.lang.String getZoneName () {
		return zoneName;
	}

	/**
	 * Set the value related to the column: ZONE_NAME
	 * @param zoneName the ZONE_NAME value
	 */
	public void setZoneName (java.lang.String zoneName) {
		this.zoneName = zoneName;
	}



	/**
	 * Return the value associated with the column: REG_NAME
	 */
	public java.lang.String getRegName () {
		return regName;
	}

	/**
	 * Set the value related to the column: REG_NAME
	 * @param regName the REG_NAME value
	 */
	public void setRegName (java.lang.String regName) {
		this.regName = regName;
	}



	/**
	 * Return the value associated with the column: SECT_NAME
	 */
	public java.lang.String getSectName () {
		return sectName;
	}

	/**
	 * Set the value related to the column: SECT_NAME
	 * @param sectName the SECT_NAME value
	 */
	public void setSectName (java.lang.String sectName) {
		this.sectName = sectName;
	}



	/**
	 * Return the value associated with the column: UGA_CODE
	 */
	public java.lang.String getUgaCode () {
		return ugaCode;
	}

	/**
	 * Set the value related to the column: UGA_CODE
	 * @param ugaCode the UGA_CODE value
	 */
	public void setUgaCode (java.lang.String ugaCode) {
		this.ugaCode = ugaCode;
	}



	/**
	 * Return the value associated with the column: UN
	 */
	public java.lang.Double getUn () {
		return un;
	}

	/**
	 * Set the value related to the column: UN
	 * @param un the UN value
	 */
	public void setUn (java.lang.Double un) {
		this.un = un;
	}



	/**
	 * Return the value associated with the column: UN_MARCH
	 */
	public java.lang.Double getUnMarch () {
		return unMarch;
	}

	/**
	 * Set the value related to the column: UN_MARCH
	 * @param unMarch the UN_MARCH value
	 */
	public void setUnMarch (java.lang.Double unMarch) {
		this.unMarch = unMarch;
	}



	/**
	 * Return the value associated with the column: PM
	 */
	public java.lang.Double getPm () {
		return pm;
	}

	/**
	 * Set the value related to the column: PM
	 * @param pm the PM value
	 */
	public void setPm (java.lang.Double pm) {
		this.pm = pm;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.gsk.europepharma.salesReport.hibernate.mvSpBoPocSalesReport01)) return false;
		else {
			com.gsk.europepharma.salesReport.hibernate.mvSpBoPocSalesReport01 mvSpBoPocSalesReport01 = (com.gsk.europepharma.salesReport.hibernate.mvSpBoPocSalesReport01) obj;
			if (null == this.getId() || null == mvSpBoPocSalesReport01.getId()) return false;
			else return (this.getId().equals(mvSpBoPocSalesReport01.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}